﻿using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Starry.Wx.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class WxCoreCollectionExtensions
    {
        public static IServiceCollection AddWxCore(this IServiceCollection services, Action<WxOptions> wxOptionsAction)
        {
            services.Configure(wxOptionsAction);
            services.AddSingleton<WxCoreService>();
            return services;
        }
    }
}
